import QilinView from "./QilinView/index.vue";
import QilinSearch from "./QilinSearch/index.vue";
import QilinUploadFile from "./QilinUploadFile/index.vue";
import QilinUploadImage from "./QilinUploadImage/index.vue";
import QilinDialog from "./QilinDialog/index.vue";
import QilinWangEditor from "./QilinWangEditor/index.vue";
import QilinVueEditify from "./QilinVueEditify/index.vue";
import QilinForm from "./QilinForm/index.vue";
import QilinTable from "./QilinTable/index.vue";
import TableColumn from "./QilinTable/table-column.vue";
import QilinDrawer from "./QilinDrawer/index.vue";
import QilinTree from "./QilinTree/index.vue";
import QilinKaitify from "./QilinKaitify/index.vue";

import number from "./directive/number/index.js";

const components=[
    QilinView,
    QilinSearch,
    QilinUploadFile,
    QilinUploadImage,
    QilinDialog,
    QilinWangEditor,
    QilinVueEditify,
    QilinForm,
    QilinTable,
    TableColumn,
    QilinDrawer,
    QilinTree,
    QilinKaitify
];
const directives=[number];

const install=(App,options)=>{
    components.forEach((item)=>{
        App.component(item.name,item);
    });
    directives.forEach((item)=>{
        App.directive(item.name,item);
    });
};

var version = "1.0.37";
console.log(`%c qilin-element3x %c v${version} `, "padding: 2px 1px; border-radius: 3px 0 0 3px; color: #fff; background: #606060; font-weight: bold;", "padding: 2px 1px; border-radius: 0 3px 3px 0; color: #fff; background: #3c9cff; font-weight: bold;");

export default {
    install
};